package cn.kmust.booth.portal.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author tedu.cn
 * @since 2020-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("area")
@Accessors(chain = true)
public class Area implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 摊位总数
     */
    @TableField("total")
    private Integer total;

    /**
     * 剩余摊位数量
     */
    @TableField("number")
    private Integer number;

    /**
     * 位置信息
     */
    @TableField("local_info")
    private String localInfo;

    /**
     * 是否允许摆摊,0不允许 1允许
     */
    @TableField("flag")
    private Integer flag;


    /**
     * 开放时间
     */
    @TableField("open_time")
    private String openTime;

    /**
     * 关闭时间
     */
    @TableField("close_time")
    private String closeTime;


}
